package com.allen.study.common.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * 基础持久化对象
 * @author AllenSun
 * @since 2025-04-23 20:46
 */
@Getter
@Setter
@ToString
public class BasePO {

    // /**
    //  * 租户ID
    //  */
    // @TableField(value = "TENANT_ID", fill = FieldFill.INSERT)
    // private Long tenantId;

    /**
     * 创建日期时间
     */
    @TableField(value = "CRT_DT_TM", fill = FieldFill.INSERT)
    private LocalDateTime createDateTime;

    /**
     * 创建用户ID
     */
    @TableField(value = "CRT_USER_ID", fill = FieldFill.INSERT)
    private Long createUserId;

    /**
     * 更新日期时间
     */
    @TableField(value = "UPD_DT_TM", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDateTime;

    /**
     * 更新用户ID
     */
    @TableField(value = "UPD_USER_ID", fill = FieldFill.INSERT_UPDATE)
    private Long updateUserId;
}